// 导入封装的http请求
import http from '@/utils/http';

/**
 * 获取商品详情数据
 */
export const getGoodsDetail = (id) => {
    return http({
        url: '/goods',
        data: { id }
    })
}

/**
 * 同类推荐
 */
export const getGoodsRelevant = (id) => {
    return http({
        url: "/goods/relevant",
        data: {
            id
        }
    })
}